<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>  
    <link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
    <link rel="stylesheet" href="/Public/css/page.css">
    <link rel="stylesheet" href="/Public/Admin/css/admin.css">
    <script src="/Public/Admin/js/jquery.js"></script>  
    <script src="/Public/js/function.js"></script> 
    
    <script src="/Public/Admin/js/pintuer.js"></script>

    
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1><img src="/Public/Admin/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />后台管理中心</h1>
  </div>
  <div class="head-l"><a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;<a href="##" class="button button-little bg-blue"><span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red" href="login.html"><span class="icon-power-off"></span> 退出登录</a> </div>
</div>
<div class="leftnav">
  <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
  <h2><span class="icon-user"></span>基本设置</h2>
  <ul style="display:block">
    <li><a href="info.html" target="right"><span class="icon-caret-right"></span>网站设置</a></li>
    <li><a href="pass.html" target="right"><span class="icon-caret-right"></span>修改密码</a></li>
    <li><a href="page.html" target="right"><span class="icon-caret-right"></span>单页管理</a></li>  
    <li><a href="adv.html" target="right"><span class="icon-caret-right"></span>首页轮播</a></li>   
    <li><a href="book.html" target="right"><span class="icon-caret-right"></span>留言管理</a></li>     
    <li><a href="column.html" target="right"><span class="icon-caret-right"></span>栏目管理</a></li>
  </ul>   
  <h2><span class="icon-pencil-square-o"></span>栏目管理</h2>
  <ul>
    <li><a href="list.html" target="right"><span class="icon-caret-right"></span>内容管理</a></li>
    <li><a href="add.html" target="right"><span class="icon-caret-right"></span>添加内容</a></li>
    <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>       
  </ul>  
  <h2><span class="icon-pencil-square-o"></span>用户管理</h2>
  <ul>
    <li><a href="<?php echo U('User/index');?>" target="right"><span class="icon-caret-right"></span>全部用户</a></li>
    <li><a href="<?php echo U('User/addUser');?>" target="right"><span class="icon-caret-right"></span>添加用户</a></li>       
  </ul> 
  <h2><span class="icon-pencil-square-o"></span>分类管理</h2>
  <ul>
    <li><a href="<?php echo U('Category/index');?>" target="right"><span class="icon-caret-right"></span>查看分类</a></li>
    <li><a href="<?php echo U('Category/AddCategory');?>" target="right"><span class="icon-caret-right"></span>添加分类</a></li>       
  </ul>
  <h2><span class="icon-pencil-square-o"></span>文章管理</h2>
  <ul>
    <li><a href="<?php echo U('Article/index');?>" target="right"><span class="icon-caret-right"></span>文章列表</a></li>
    <li><a href="<?php echo U('Article/AddArticle');?>" target="right"><span class="icon-caret-right"></span>添加文章</a></li>       
  </ul>
</div>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  })
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
  })
});
</script>
<ul class="bread">
  <li><a href="{:U('Index/info')}" target="right" class="icon-home"> 首页</a></li>
  <li><a href="##" id="a_leader_txt">网站信息</a></li>
  <li><b>当前语言：</b><span style="color:red;">中文</php></span>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>
<div class="admin">
  
    <form method="post" action="" id="listform">
        <div class="panel admin-panel">
            <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
            <div class="padding border-bottom">
                <ul class="search" style="padding-left:10px;">
                    <li> <a class="button border-main icon-plus-square-o" href="<?php echo U('Article/AddArticle');?>"> 添加内容</a> </li>
                    <li>搜索：</li>
                    <li>首页
                        <select name="s_ishome" class="input" onchange="changesearch()" style="width:60px; line-height:17px; display:inline-block">
                            <option value="">选择</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                        &nbsp;&nbsp;
                        推荐
                        <select name="s_isvouch" class="input" onchange="changesearch()"  style="width:60px; line-height:17px;display:inline-block">
                            <option value="">选择</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                        &nbsp;&nbsp;
                        置顶
                        <select name="s_istop" class="input" onchange="changesearch()"  style="width:60px; line-height:17px;display:inline-block">
                            <option value="">选择</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </li>
                    <!--<?php if($iscid == 1): ?>-->
                        <!--<li>-->
                            <!--<select name="cid" class="input" style="width:200px; line-height:17px;" onchange="changesearch()">-->
                                <!--<option value="">请选择分类</option>-->
                                <!--<option value="">产品分类</option>-->
                                <!--<option value="">产品分类</option>-->
                                <!--<option value="">产品分类</option>-->
                                <!--<option value="">产品分类</option>-->
                            <!--</select>-->
                        <!--</li>-->
                    <!--<?php endif; ?>-->
                    <li>
                        <input type="text" placeholder="请输入搜索关键字" name="keywords" class="input" style="width:250px; line-height:17px;display:inline-block" />
                        <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()" > 搜索</a></li>
                </ul>
            </div>
            <table class="table table-hover text-center">
                <tr>
                    <th width="100" style="text-align:left; padding-left:20px;">ID</th>
                    <th width="10%">作者</th>
                    <th>title</th>
                    <th>分类名称</th>
                    <th width="10%">更新时间</th>
                    <th width="310">操作</th>
                </tr>
                <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                        <td style="text-align:left; padding-left:20px;">
                            <?php echo ($vo["id"]); ?></td>
                        <td width="10%"><?php echo ($vo["uname"]); ?></td>
                        <td><?php echo ($vo["title"]); ?></td>
                        <td><?php echo ($vo["cname"]); ?></td>
                        <td><?php echo ($vo["createtime"]); ?></td>
                        <td><div class="button-group"> <a class="button border-main" href="add.html"><span class="icon-edit"></span> 修改</a> <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1,1)"><span class="icon-trash-o"></span> 删除</a> </div></td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                    <tr>
                        <td colspan="8"><?php echo ($page); ?></td>
                    </tr>
            </table>
        </div>
    </form>
    <script type="text/javascript">

        //搜索
        function changesearch(){

        }

        //单个删除
        function del(id,mid,iscid){
            if(confirm("您确定要删除吗?")){

            }
        }

        //全选
        $("#checkall").click(function(){
            $("input[name='id[]']").each(function(){
                if (this.checked) {
                    this.checked = false;
                }
                else {
                    this.checked = true;
                }
            });
        })

        //批量删除
        function DelSelect(){
            var Checkbox=false;
            $("input[name='id[]']").each(function(){
                if (this.checked==true) {
                    Checkbox=true;
                }
            });
            if (Checkbox){
                var t=confirm("您确认要删除选中的内容吗？");
                if (t==false) return false;
                $("#listform").submit();
            }
            else{
                alert("请选择您要删除的内容!");
                return false;
            }
        }

        //批量排序
        function sorts(){
            var Checkbox=false;
            $("input[name='id[]']").each(function(){
                if (this.checked==true) {
                    Checkbox=true;
                }
            });
            if (Checkbox){

                $("#listform").submit();
            }
            else{
                alert("请选择要操作的内容!");
                return false;
            }
        }


        //批量首页显示
        function changeishome(o){
            var Checkbox=false;
            $("input[name='id[]']").each(function(){
                if (this.checked==true) {
                    Checkbox=true;
                }
            });
            if (Checkbox){

                $("#listform").submit();
            }
            else{
                alert("请选择要操作的内容!");

                return false;
            }
        }

        //批量推荐
        function changeisvouch(o){
            var Checkbox=false;
            $("input[name='id[]']").each(function(){
                if (this.checked==true) {
                    Checkbox=true;
                }
            });
            if (Checkbox){


                $("#listform").submit();
            }
            else{
                alert("请选择要操作的内容!");

                return false;
            }
        }

        //批量置顶
        function changeistop(o){
            var Checkbox=false;
            $("input[name='id[]']").each(function(){
                if (this.checked==true) {
                    Checkbox=true;
                }
            });
            if (Checkbox){

                $("#listform").submit();
            }
            else{
                alert("请选择要操作的内容!");

                return false;
            }
        }


        //批量移动
        function changecate(o){
            var Checkbox=false;
            $("input[name='id[]']").each(function(){
                if (this.checked==true) {
                    Checkbox=true;
                }
            });
            if (Checkbox){

                $("#listform").submit();
            }
            else{
                alert("请选择要操作的内容!");

                return false;
            }
        }

        //批量复制
        function changecopy(o){
            var Checkbox=false;
            $("input[name='id[]']").each(function(){
                if (this.checked==true) {
                    Checkbox=true;
                }
            });
            if (Checkbox){
                var i = 0;
                $("input[name='id[]']").each(function(){
                    if (this.checked==true) {
                        i++;
                    }
                });
                if(i>1){
                    alert("只能选择一条信息!");
                    $(o).find("option:first").prop("selected","selected");
                }else{

                    $("#listform").submit();
                }
            }
            else{
                alert("请选择要复制的内容!");
                $(o).find("option:first").prop("selected","selected");
                return false;
            }
        }
    </script>


</div>
<div style="text-align:center;">
</div>
</body>
</html>